<template>
  <div class="page">
    <div class="withdraw-wrapper">
      <div class="flex-x-bet-y-center">
        <span class="title">提现金额</span>
        <div class="tips">实际到账金额为扣除手续费金额</div>
      </div>
      <div class="input-wrapper flex-y-center">
        <div class="char">￥</div>
        <el-input
          v-model="form.name"
          class="withdraw-number-input"
          autocomplete="off"
          placeholder="请输入提现金额"
        ></el-input>
      </div>

      <div class="balance flex-x-bet-y-center">
        <span>账户余额：￥50</span>
        <el-button type="text" class="withdraw-all">全部提现</el-button type="text">
      </div>
    </div>

    <div class="title">提现方式</div>

    <el-form :model="form" class="form" label-position="left">
      <el-form-item label="银行卡">
        <el-input
          v-model="form.name"
          autocomplete="off"
          placeholder="输入您的银行卡号和银行"
        ></el-input>
      </el-form-item>
      <el-form-item label="支付宝">
        <el-input
          v-model="form.name"
          autocomplete="off"
          placeholder="请输入您的支付宝账号"
        ></el-input>
      </el-form-item>
    </el-form>

    <el-button type="primary" class="withdraw-btn">提现</el-button>
  </div>
</template>

<script>
export default {
  name: "withdraw",
  data() {
    return {
      form: {},
    };
  },
};
</script>

<style lang="scss" scoped>
.withdraw-wrapper {
  background: #ffffff;
  padding: 30px 30px 30px 0;

  .tips {
    font-weight: normal;
    font-size: 14px;
    color: #f42d1f;
  }

  .input-wrapper {
    padding-top: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f3f3;
    margin-left: 20px;
  }

  .char {
    font-weight: normal;
    font-size: 26px;
    color: #333333;
    margin-right: 10px;
  }

  .withdraw-number-input{
    ::v-deep .el-input__inner {
        width: 100%;
        border:0;
        font-size: 20px;
    }
  }

  .balance {
    padding: 15px 0 0 20px;
    font-weight: normal;
    font-size: 14px;
    color: #666666;
  }

  .withdraw-all {
    color: #fe5a13;
    cursor: pointer;
  }
}

.title {
  display: flex;
  align-items: center;
  color: #333333;
  font-weight: 400;
  font-size: 18px;
}

.title::before {
  content: "";
  width: 3px;
  height: 18px;
  margin-right: 20px;
  background: #fe5a13;
  border-radius: 2px 2px 2px 2px;
}

::v-deep .el-form-item__label {
  line-height: 56px;
  font-size: 18px;
  width: 120px;
}

.form {
  padding-top: 10px;
  margin: 0 20px;

  // 设置文本框长度
  ::v-deep .el-input__inner {
    width: 100%;
    height: 46px;
    font-size: 16px;
    border: 0;
    border-bottom: 1px solid #ededed;
    padding-left: 0;
  }
}

.withdraw-btn{
    margin-top: 20px;
    width: 200px;
    font-size: 18px;
    margin-left: 20px;
}
</style>
